﻿
using System.Windows.Media;
using Microsoft.Phone.Maps.Controls;

namespace Wp8nl.MapBinding
{
  public class MapPolygonDrawer : MapShapeDrawer
  {
    public MapPolygonDrawer()
    {
      Color = Colors.Black;
    }

    public override MapElement CreateShape(object viewModel, GeoCoordinateCollection path)
    {
      return new MapPolygon { Path = path, FillColor = Color, StrokeDashed = StrokeDashed, StrokeThickness = Width, StrokeColor = StrokeColor };
    }
  }
}
